import { get, post } from '../http'

const auth = {
  // 登录
  login (params) {
    return post('/login/getUserInfo', params)
  },
  // 注册
  register (params) {
    return post('/userInfo/register', params)
  },
  // 图片upload
  uploadImage (params) {
    return post('/oss/uploadToOss', params)
  },
  // 修改个人信息
  discUser (params) {
    return post('/userInfo/update', params)
  }
}

export default auth
